package zhklappoint.enums;

/**
 * 图片code对应码
 *
 */
public enum ENUM_FUNCTION_IMG {
	//公司详情
	IMG0(0),
	//预约列表
	IMG1(1),
	//我的预约
	IMG2(2),
	//旗子鱼尾
	IMG3(3),
	//闹钟
	IMG4(4),
	//旗子尖尾巴
	IMG5(5),
	//优惠券
	IMG6(6),
	//联系客服
	IMG7(7),
	//测试
	IMG8(8);

	public Integer value;

	private ENUM_FUNCTION_IMG(Integer value) {
		this.value = value;
	}

	public static Boolean isPay(Integer value) {
		switch (value) {
		case 0:
			return false;
		case 1:
			return false;
		case 2:
			return false;
		case 3:
			return false;
		case 4:
			return false;
		case 5:
			return false;
		case 6:
			return false;
		case 7:
			return false;
		default:
			return true;
		}
	}
	
	public static String getIcon(Integer value) {
		switch (value) {
		case 0:
			return "icon-gongsi";
		case 1:
			return "icon-yuyue";
		case 2:
			return "icon-icon2";
		case 3:
			return "icon-huodongxiangqu";
		case 4:
			return "icon-iconfontriyongbaihuo";
		case 5:
			return "icon-huodong1";
		case 6:
			return "icon-youhuiquan1";
		case 7:
			return "icon-lianxikefu2";
		case 8:
			return "icon-lianxikefu2";
		default:
			return "";
		}
	}
	
	public static String getName(Integer value) {
		switch (value) {
		case 0:
			return "简介";
		case 1:
			return "预约列表";
		case 2:
			return "我的预约";
		case 3:
			return "旗子鱼尾";
		case 4:
			return "快开始啦";
		case 5:
			return "旗子尖尾巴";
		case 6:
			return "优惠券";
		case 7:
			return "联系客服";
		case 8:
			return "测试";
		default:
			return "";
		}
	}
	
	public static ENUM_FUNCTION_IMG getValue(Integer value) {
		for (ENUM_FUNCTION_IMG e : ENUM_FUNCTION_IMG.values()) {
			if (e.value == value) {
				return e;
			}
		}
		return null;
	}
}
